# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=garcon
pkgver=4.18.1
pkgrel=1
pkgdesc="a freedesktop.org compliant menu implementation based on GLib and GIO"
url="https://xfce.org/"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
makedepends="
	glib-dev
	gobject-introspection-dev
	gtk+3.0-dev
	gtk-doc
	intltool
	libxfce4ui-dev
	libxfce4util-dev
	xfce4-dev-tools
	"
source="https://archive.xfce.org/src/xfce/garcon/${pkgver%.*}/garcon-$pkgver.tar.bz2"
replaces="xfdesktop"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--disable-static \
		--enable-introspection \
		--enable-gtk-doc
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
8e6d091beaf1aaa85cc16cd5e562191e0e6858a47444a23d95066f9afa3f8a70f7a61bc9fec33fe401945637e810441cbd6f961f41b40e2d2ce7a1ce4fce78a0  garcon-4.18.1.tar.bz2
"
